// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** downloadTemplate POST /api/template/make/download */
export async function downloadTemplateUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.downloadTemplateUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/api/template/make/download', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** makeTemplate POST /api/template/make/url */
export async function makeTemplateUsingPost(
  body: API.TemplateMakeRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseString_>('/api/template/make/url', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
